# _*_ coding: utf-8 _*_
import requests
import time
from bs4 import BeautifulSoup

urls = [
    "http://www.baidu.com",
    "http://www.taobao.com",
    "http://www.so.com"
]
start_time = time.time()
for url in urls:
    this_start_time = time.time()
    r = requests.get(url).content
    soup = BeautifulSoup(r, 'lxml')
    image = soup.find_all("img")
    print image
    this_end_time = time.time()
    print "本次循环用时：",this_end_time-this_start_time
end_time = time.time()
print "单线程花费时间是:",end_time-start_time